{% extends "portal.html" %}

{% block title %}Coatl::Web 2.0{% endblock %}

{% block content %}
{% for new in news_list %} 
  <h2>{{ new.title }}</h2>
  <p> From redaction: {{ new.category.category }}</p>
  <div style="float:right;"><a href="/news/category/{{ new.category.id}}"><img src="/media/{{ new.category.image }}" alt="alt" /></a></div>
  <p>{{ new.new }}</p>
  <b>{{ new.author }}</b> wrote {{ new.new|wordcount }} words on {{ new.date|date }} at {{ new.date|time }}
  <p><a href="/news/view/{{ new.slug }}/">{{ new.title }}</a></p>
{% endfor %}
{% endblock %}
